 
#include "MainScene.h"
#include "MainMenu.h"

CMainScene::~CMainScene( void )
{

}

void CMainScene::Unload()
{
	this->RemoveDialog(pMainMenu);
	IScene::Unload();
	
}

void CMainScene::HandleInput()
{

}

LRESULT CMainScene::OnMsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,bool* pbNoFurtherProcessing )
{
	pMainMenu->OnMessage(hWnd,uMsg,wParam,lParam,pbNoFurtherProcessing);
	return S_OK;
}

void CMainScene::Load()
{
	IScene::Load();
	AddDialogNode(pMainMenu);
}

CMainScene::CMainScene( void )
	:IScene(true)
{
	pMainMenu =new CMainMenu();

}

void CMainScene::OnTerminate( void )
{
	SAFE_DELETE(pMainMenu);

}

void CMainScene::OnD3D9FrameRender( float fElapsedTime )
{
	IScene::OnD3D9FrameRender(fElapsedTime);

}
